package com.ruiysoft.service.statement;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruiysoft.entity.statement.StatementShop;
import com.ruiysoft.service.statement.bean.StatementCondition;
import com.ruiysoft.service.statement.consts.StatementAuditStatus;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author liyahui
 * @since 2018-12-01
 */
public interface IStatementShopService extends IService<StatementShop> {

    Long selectSumMoney(StatementCondition condition);

    void withdrawable(Long money, Long shopId, Long userId);

    @Transactional
    void expenditure(StatementShop statement, Long userId, StatementAuditStatus auditStatus, String info);
}
